package pers.jing.android.cmd.tools

import com.android.repository.api.Channel
import com.android.repository.api.SettingsController

/**
 * 由于sdkmanager库中的设置类是内部的无法使用
 */
class SdkManagerSettings: SettingsController {

    private var forceHttp: Boolean = false

    override fun getForceHttp(): Boolean {
        return forceHttp
    }

    override fun setForceHttp(force: Boolean) {
        this.forceHttp = force
    }

    override fun getChannel(): Channel? {
        //0表示稳定版
        return Channel.create(0)
    }
}